package com.gzsxy.model;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 会话用户
 * @date 2021/11/9 17:51
 */
@Getter
@Setter
public class SessionUser implements Serializable {

    private static final long serialVersionUID = -442802945494739110L;


    private String id;
    private String userName;
    private String realName;
    private String password;

    private Date createTime;
    private Date lastLoginTime;


    @Override
    public String toString() {
      return JSONObject.toJSONString(this, SerializerFeature.WriteMapNullValue);
    }
}
